<?=form_open('user/index','class="regform form-horizontal"')?>
 <fieldset>
  <legend>Join us now!</legend>
		<div id="nameBox" class="control-group <?php echo (form_error('name') ? 'error' : '' );?>">
            <label for="name" class="control-label">Your Name:</label>
            <div class="controls">
              <?=form_input($signup['name'])?>
              <span class="help-inline"><?=form_error('name')?></span>
            </div>
        </div>
		<div id="emailBox" class="control-group <?php echo ( form_error('email') ? 'error' : '' );?>">
            <label for="email" class="control-label">Email Address:</label>
            <div class="controls">
              <?=form_input($signup['email'])?>
              <span class="help-inline"><?=form_error('email')?></span>
            </div>
        </div>
		<div id="passwordBox" class="control-group <?php echo ( form_error('password') ? 'error' : '' );?>">
            <label for="password" class="control-label">Password:</label>
            <div class="controls">
              <?=form_password($signup['password'])?>
              <span class="help-inline"><?=form_error('password')?></span>
            </div>
        </div>
		<div id="password2Box" class="control-group <?php echo ( form_error('password2') ? 'error' : '' );?>">
            <label for="password2" class="control-label">Confirm Password:</label>
            <div class="controls">
              <?=form_password($signup['password2'])?>
              <span class="help-inline"><?=form_error('password2')?></span>
            </div>
        </div>
		
		<div class="form-actions">
            <?=form_submit($signup['registerbtn'])?>
			<?=form_reset($signup['reset'])?>
          </div>

        </fieldset>
<?=form_close()?>

<div class="signupCallout">
<img class="arrowLeft" src="<?=base_url().'media/images/arrowLeft1.png'?>" alt="">
<span id="signupError"></span>
</div>

